import {Preset} from "unocss";

export const CustomPreset:Preset={
    name:"CustomPreset",
    prefix:'tt-',
    rules:[
        [/^m-([.\d]+)$/, ([_, num]) => ({ margin: `${num}px` })],
        [/^p-([.\d]+)$/, ([_, num]) => ({ padding: `${num}px` })]
    ],
    shortcuts:{
        'themColor':'bg-yellow'
    },
}